import request from '@/utils/requestUtil'


//团队订单接口
export function teamOrderList() {
	return request({
		method: 'GET',
		url: '/user/getTeamOrder'
	})
}
//收货地址管理接口
export function addressList() {
	return request({
		method: 'GET',
		url: '/user/addresslist'
	})
}



//地址详情接口
export function setAddress(addressId) {
	return request({
		method: 'GET',
		url: `/user/getaddress?addressId=${addressId}`
	})
}


//获取银行卡列表数据
export function getPay(type) {
	return request({
		method: 'get',
		url: `/user/getPay?type=${type}`,
	})
}

//获取银行卡列表数据
export function detelePay(data) {
	return request({
		method: 'POST',
		url: '/user/detelePay',
		data: data
	})
}



//添加银行卡号信息接口
export function setPay(data) {
	return request({
		method: 'POST',
		url: '/user/setPay',
		data: data
	})
}

//省市区联动接口
export function areaList() {
	return request({
		method: 'GET',
		url: '/user/area'
	})
}
//保存收货地址接口
export function addAddress(data) {
	return request({
		method: 'POST',
		url: '/user/addaddress',
		data: data
	})
}

//修改收货地址信息接口
export function editAddress(data) {
	return request({
		method: 'POST',
		url: '/user/editaddress',
		data: data
	})
}


//修改收货地址信息接口
export function delAddress(data) {
	return request({
		method: 'POST',
		url: '/user/deladdress',
		data: data
	})
}

//上传签名接口
export function base64upload(data) {
	return request({
		method: 'post',
		url: '/index/base64upload',
		data: data
	})
}

//提交签名接口
export function realname(data) {
	return request({
		method: 'post',
		url: '/user/realname',
		data: data
	})
}